import java.util.Scanner;

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        //类是对某一个事物的抽象，对象是类的实现
        //于类中定义的变量是成员变量，于方法中定义的变量是局部变量


        manMessage stalker=new manMessage();
        stalker.set("STALKER",new dayDate(),"114514");
        stalker.getMessage();
    }
}

class dayDate{
    private String year="2023";
    private String month="1";
    private String day="4";

    public String getYear() {
        return year;
    }

    public void isYear(int s) {
        System.out.println("请输入年份");
        if((s/4)%100!=0){
            System.out.println("是闰年");
        }else{
            System.out.println("不是闰年");
        }
    }
}
class manMessage{
    private String name;
    private dayDate creteManDate;
    private String idDefin;

    public void set(String name,dayDate day,String idDefin) {
        this.creteManDate=day;
        this.name=name;
        this.idDefin=idDefin;
    }
    public void getMessage() {
        System.out.println("姓名"+this.name+" 出生年月"+this.creteManDate.getYear()+" 身份证号"+this.idDefin);
    }
}

